from django.db import models

# Create your models here.
class JosUsers(models.Model):
    id = models.IntegerField(primary_key=True)
    name = models.CharField(u'User Name', max_length=255)
    username = models.CharField(max_length=150)
    email = models.CharField(max_length=100)
    password = models.CharField(max_length=100)
    usertype = models.CharField(max_length=25)
    block = models.IntegerField()
    sendemail = models.IntegerField(null=True, db_column='sendEmail', blank=True) # Field name made lowercase.
    gid = models.IntegerField()
    registerdate = models.DateTimeField(db_column='registerDate') # Field name made lowercase.
    lastvisitdate = models.DateTimeField(db_column='lastvisitDate') # Field name made lowercase.
    activation = models.CharField(max_length=100)
    params = models.TextField()
    
    def __unicode__(self):
        return self.name
        
    class Meta:
        db_table = u'jos_users'


